﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺物流列表页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.ui.css" rel="stylesheet" type="text/css"/>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("请选择要删除的数据");
		return;
	}
	if(!confirm("确认删除")) {
		return;
	}
	var f = document.getElementById('tableForm');
	f.action="delete.jspx";
	f.submit();
}

function optSaveOrder() {
	var f = getTableForm();
	f.action="priority.jspx";
	f.submit();
}
</script>
</head>
<body>
[#include "../include/店铺页头顶栏.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
		<div class="user_title2">店铺物流列表<a href="add.jspx" class="fr" style="margin-right:5px;">添加物流</a></div>
        <div class="clear10"></div>     
        <form id="tableForm" method="post">
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc">
        <tr>
        <td width="35" height="30" align="center" bgcolor="#f0f0f0"><input type='checkbox' onclick='Pn.checkbox("ids",this.checked)'/></td>
        <td align="center" bgcolor="#f0f0f0">名称</td>
        <td width="160" align="center" bgcolor="#f0f0f0">计价方式</td>
        <td width="120" align="center" bgcolor="#f0f0f0">排列顺序</td>
        <td width="80" align="center" bgcolor="#f0f0f0">是否启用</td>
        <td width="120" align="center" bgcolor="#f0f0f0">操作</td>
        </tr>
        </table>
        
        [@shipping_page storeId=store.id count="20" pageNo=pageNo]
        <table  cellspacing="1" cellpadding="5" align="center" width="100%" border="0">
        [#if tag_list?size gt 0]
        [#list tag_list as shipping]
        <tr>
        <td width="35" height="50" align="center"><input type="checkbox" name="ids" value="${shipping.id}"/></td>
        <td>${shipping.name!}</td>
        <td width="160" align="center">
        [#if shipping.method==1]统一价格：${shipping.uniformPrice!}
        [#elseif shipping.method==2]首重价：${shipping.firstPrice} , &nbsp; 续重价:${shipping.additionalPrice}
        [#elseif shipping.method==3]按国家[/#if]
        </td>
        <td width="120" align="center">
        <input type="text" name="priority" size="4" value="${shipping.priority!10}" class="dzinput"/>
        <input type="hidden" name="wids" value="${shipping.id}"/>
        </td>
        <td width="80" align="center">
        [#if shipping.disabled]否[#else]是[/#if]
        </td>
        <td width="120" align="center">
        <a href="edit.jspx?id=${shipping.id}" target="_blank">修改</a> | 
        <a href="delete.jspx?ids=${shipping.id}" target="_blank">删除</a>
        </td>
        </tr>
        <tr>
        <td height="1" colspan="6" bgcolor="#e7e7e7"></td>
        </tr>
        [/#list]
        [#else]
        <div class="zwsj">暂无数据</div>
        [/#if]
        </table>
        [/@shipping_page]
        <div class="clear20"></div>
        <input type="button" value="删除" onclick="optDelete();" class="menu_ok"/>
        <input type="button" value="保存排序" onclick="optSaveOrder();" class="menu_ok2"/>
        </form>
	</div>	
    <div class="clear20"></div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>